<?php

/**
 * @Author: ddyake
 * @Date:   2020-12-20 20:16:12
 * @Last Modified by:   ddyake
 * @Last Modified time: 2020-12-20 20:22:21
 * 获取分类
 */
$json = array('status'=>'ok','msg'=>'ok','data'=>'');

$sys = $this->website['class']['unity']->configura('sys');
$params = $this->params();


$json['data']= $this->website['class']['db']
                             ->table('type')
                             ->field('id','tit')
                             ->where('upid=?',$sys['productid'])
                             ->order('id desc')
                             ->select();








$this->json_encode_encrypt($json);